package com.liliudong.pinkyponk.biz.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liliudong.pinkyponk.biz.sys.entity.SysOrg;
import com.liliudong.pinkyponk.biz.sys.mapper.SysOrgMapper;
import com.liliudong.pinkyponk.biz.sys.service.SysOrgService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * SysOrgService
 *
 * @author liliudong
 * @date 2022-06-01 16:21
 **/
@Service
public class SysOrgServiceImpl extends ServiceImpl<SysOrgMapper, SysOrg> implements SysOrgService {

    @Override
    public List<String> getOrgNosByRoleIds(List<Integer> roleIds) {
        return baseMapper.selectOrgNosByRoleIds(roleIds);
    }

    @Override
    public List<String> getOrgNosByUserId(Long userId) {
        return baseMapper.selectOrgNosByUserId(userId);
    }

    @Override
    public List<String> getAllOrgNos() {
        return baseMapper.selectAllOrgNos();
    }
}
